package cn.rkylin.oms.system.storage.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

import cn.rkylin.oms.system.storage.domain.Stor;
import cn.rkylin.oms.system.storage.vo.StorVO;

public interface IStorService {
    PageInfo<StorVO> findByWhere(int page, int length, StorVO param) throws Exception;

    public void delete(String storId) throws Exception;

    List<StorVO> getStorByCondition(StorVO storVO) throws Exception;

    public void insert(StorVO storVO) throws Exception;

    public Stor selectStorDetail(String storId) throws Exception;

    public void update(StorVO storVO) throws Exception;

    List<StorVO> findByProjectId(String projectId) throws Exception;

    List<StorVO> findByProjectIdExt(String projectId) throws Exception;

    List<StorVO> findByProjectIdLocal(String projectId) throws Exception;

	List<StorVO> findByProjectIdCainiao(String projectId) throws Exception;
	
    public List<StorVO> findByShopId(String shopId) throws Exception;
    public List<StorVO> findByShopIdNoDelete(String shopId) throws Exception;

    /**
     * 获取默认仓库
     * 
     * @param shopId
     * @return
     * @throws Exception
     */
    StorVO getDefaultStor(String shopId) throws Exception;

}
